package com.example.demo;

import org.joda.time.DateTime;

import java.util.Random;
import java.util.UUID;

public class TimeData {

    public static void main(String[] args) {
        Random random = new Random();
        int i=0;
        while (i<=7){
            String nanoRandom = System.nanoTime() + "" + random.nextInt(99999);
            int hash = Math.abs(UUID.randomUUID().hashCode());
            int needAdd = 19 - String.valueOf(hash).length() + 1;

            Long aLong = Long.valueOf(hash + "" + nanoRandom.substring(needAdd));
            System.out.println(aLong);
            System.out.println(i);
            i++;
            System.out.println(i);
            System.out.println("hello world");
        }


    }
}
